package com.codingfly.service;

import com.codingfly.core.jdbc.service.JPAService;
import com.codingfly.entity.SysDict;
import com.codingfly.model.vo.DictItemVo;

import java.util.Collection;
import java.util.List;
import java.util.Map;

public interface SysDictService extends JPAService<SysDict, Long> {
    SysDict findByCode(String code);

    List<DictItemVo> dictItemTree(Long id);

    List<DictItemVo> dictItemTreeByCode(String code);

    Map<String, List<DictItemVo>> manyDictItemTree(Collection<String> dictCodes);

}
